# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-relatime
pkgver=1.1.0
pkgrel=10
pkgdesc='Python parser for a simple relative time syntax.'
url='https://pypi.org/project/relatime/#files'
arch=('any')
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://pypi.python.org/packages/source/r/relatime/relatime-$pkgver.tar.gz")
sha512sums=('3cb22f8d252fea99f7dc54511f7dcecfd96a370e9fd67a76d53b7834ed3ea009b79baf5b2669fe53763b2fdb1affb4d665549bc9f14efed69d5bede0c7b91f92')

build() {
  cd "relatime-$pkgver"

  python setup.py build
}

package() {
  cd "relatime-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

